<!DOCTYPE html>
<html lang="en">
  <head>
    <title>OHMySQLQueryRequestFactory Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/objc/Class/OHMySQLQueryRequestFactory" class="dashAnchor"></a>
    <a title="OHMySQLQueryRequestFactory Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">OHMySQL Docs</a> (89% documented)</p>
        <p class="header-right"><a href="https://github.com/oleghnidets/OHMySQL"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">OHMySQL Reference</a>
        <img id="carat" src="../img/carat.png" />
        OHMySQLQueryRequestFactory Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Categories.html">Categories</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Categories/NSObject(Mapping).html">NSObject(Mapping)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Categories/NSString(Escaping).html">NSString(Escaping)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLContainer.html">OHMySQLContainer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLQueryContext.html">OHMySQLQueryContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLQueryRequestFactory.html">OHMySQLQueryRequestFactory</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLStore.html">OHMySQLStore</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLStoreCoordinator.html">OHMySQLStoreCoordinator</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLTimeline.html">OHMySQLTimeline</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHMySQLUser.html">OHMySQLUser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/OHSSLConfig.html">OHSSLConfig</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Constants.html">Constants</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Constants.html#/c:@OHJoinFull">OHJoinFull</a>
              </li>
              <li class="nav-group-task">
                <a href="../Constants.html#/c:@OHJoinInner">OHJoinInner</a>
              </li>
              <li class="nav-group-task">
                <a href="../Constants.html#/c:@OHJoinLeft">OHJoinLeft</a>
              </li>
              <li class="nav-group-task">
                <a href="../Constants.html#/c:@OHJoinRight">OHJoinRight</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/CharsetEncoding.html">CharsetEncoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/OHProtocolType.html">OHProtocolType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/OHRefreshOptions.html">OHRefreshOptions</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/OHResultErrorType.html">OHResultErrorType</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/OHMappingProtocol.html">OHMappingProtocol</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/c:@F@MySQLCharsetForEncoding">MySQLCharsetForEncoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/c:@F@NSStringEncodingFromCharsetEncoding">NSStringEncodingFromCharsetEncoding</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>OHMySQLQueryRequestFactory</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight objective_c"><code><span class="k">@interface</span> <span class="nc">OHMySQLQueryRequestFactory</span> <span class="p">:</span> <span class="nc">NSObject</span></code></pre>

                </div>
              </div>
            <p>Convenience class for making specific OHMySQLQueryRequest instances.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/SELECT"></a>
                <a name="//apple_ref/objc/Section/SELECT" class="dashAnchor"></a>
                <a href="#/SELECT">
                  <h3 class="section-name">SELECT</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECT:condition:"></a>
                    <a name="//apple_ref/objc/Method/+SELECT:condition:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECT:condition:">+SELECT:condition:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Select all records.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">SELECT</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
                              <span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">select</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE id=&lsquo;10&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECT:condition:orderBy:ascending:"></a>
                    <a name="//apple_ref/objc/Method/+SELECT:condition:orderBy:ascending:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECT:condition:orderBy:ascending:">+SELECT:condition:orderBy:ascending:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Select all records with sorting.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">SELECT</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
                              <span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span>
                                <span class="nf">orderBy</span><span class="p">:</span>
                                    <span class="p">(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">columnNames</span>
                              <span class="nf">ascending</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">isAscending</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">select</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?,</span> <span class="n">orderBy</span> <span class="nv">columnNames</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">],</span> <span class="n">ascending</span> <span class="nv">isAscending</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE id=&lsquo;10&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>columnNames</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Result-set of one or more columns.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>isAscending</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Ascending or descending order.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECTFirst:condition:"></a>
                    <a name="//apple_ref/objc/Method/+SELECTFirst:condition:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECTFirst:condition:">+SELECTFirst:condition:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Select the first record of the selected table.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">SELECTFirst</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
                                   <span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">selectFirst</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE id=&lsquo;10&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECTFirst:condition:orderBy:ascending:"></a>
                    <a name="//apple_ref/objc/Method/+SELECTFirst:condition:orderBy:ascending:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)SELECTFirst:condition:orderBy:ascending:">+SELECTFirst:condition:orderBy:ascending:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Select the first record of the selected table.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span>
<span class="nf">SELECTFirst</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
  <span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span>
    <span class="nf">orderBy</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">columnNames</span>
  <span class="nf">ascending</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">isAscending</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">selectFirst</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?,</span> <span class="n">orderBy</span> <span class="nv">columnNames</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">],</span> <span class="n">ascending</span> <span class="nv">isAscending</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE id=&lsquo;10&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>columnNames</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Result-set of one or more columns.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>isAscending</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Ascending or descending order.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/INSERT"></a>
                <a name="//apple_ref/objc/Section/INSERT" class="dashAnchor"></a>
                <a href="#/INSERT">
                  <h3 class="section-name">INSERT</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)INSERT:set:"></a>
                    <a name="//apple_ref/objc/Method/+INSERT:set:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)INSERT:set:">+INSERT:set:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Insert a new record.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">INSERT</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
                                    <span class="nf">set</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">id</span><span class="o">&gt;</span> <span class="o">*</span><span class="p">)</span>
                                            <span class="n">set</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">insert</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">set</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>set</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Key is column&rsquo; name in table, value is your object.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/UPDATE"></a>
                <a name="//apple_ref/objc/Section/UPDATE" class="dashAnchor"></a>
                <a href="#/UPDATE">
                  <h3 class="section-name">UPDATE</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)UPDATE:set:condition:"></a>
                    <a name="//apple_ref/objc/Method/+UPDATE:set:condition:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)UPDATE:set:condition:">+UPDATE:set:condition:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Update all records with condition.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span>
   <span class="nf">UPDATE</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
      <span class="nf">set</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">id</span><span class="o">&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">set</span>
<span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">set</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">],</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>set</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Key is column&rsquo; name in table, value is your object.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE name=&lsquo;Name&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/DELETE"></a>
                <a name="//apple_ref/objc/Section/DELETE" class="dashAnchor"></a>
                <a href="#/DELETE">
                  <h3 class="section-name">DELETE</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)DELETE:condition:"></a>
                    <a name="//apple_ref/objc/Method/+DELETE:condition:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)DELETE:condition:">+DELETE:condition:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Deletes all records with condition.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">DELETE</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
                              <span class="nf">condition</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">condition</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">condition</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>condition</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Likes in real SQL query (e.g: WHERE id&gt;&lsquo;10&rsquo;). <a href="https://en.wikipedia.org/wiki/Where_%28SQL%29">https://en.wikipedia.org/wiki/Where_%28SQL%29</a></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/JOIN"></a>
                <a name="//apple_ref/objc/Section/JOIN" class="dashAnchor"></a>
                <a href="#/JOIN">
                  <h3 class="section-name">JOIN</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)JOINType:fromTable:columnNames:joinOn:"></a>
                    <a name="//apple_ref/objc/Method/+JOINType:fromTable:columnNames:joinOn:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)JOINType:fromTable:columnNames:joinOn:">+JOINType:fromTable:columnNames:joinOn:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Combines rows from two or more tables, based on a common field between them.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span>
   <span class="nf">JOINType</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">joinType</span>
  <span class="nf">fromTable</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span>
<span class="nf">columnNames</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">columnNames</span>
     <span class="nf">joinOn</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">joinOn</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">joinType</span><span class="p">(</span><span class="n">_</span> <span class="nv">joinType</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">fromTable</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">columnNames</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">],</span> <span class="nv">joinOn</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">String</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>joinType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Type of join (Use one of the constants from OHJoinConstants).</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Destination table.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>columnNames</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Columns to fetch.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>joinOn</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>[Table:Condition]. { <q>Users</q>:<q>Users.id=Company.userId</q> }</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Other"></a>
                <a name="//apple_ref/objc/Section/Other" class="dashAnchor"></a>
                <a href="#/Other">
                  <h3 class="section-name">Other</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)OHMySQLQueryRequestFactory(cm)countAll:"></a>
                    <a name="//apple_ref/objc/Method/+countAll:" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)OHMySQLQueryRequestFactory(cm)countAll:">+countAll:</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Counts records in a table.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Objective-C</p>
                          <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">countAll</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">tableName</span><span class="p">;</span></code></pre>

                        </div>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">countAll</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableName</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/OHMySQLQueryRequest.html">OHMySQLQueryRequest</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tableName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the target table</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An instance of OHMySQLQueryRequest.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2018 <a class="link" href="https://github.com/oleghnidets" target="_blank" rel="external">Oleg</a>. All rights reserved. (Last updated: 2018-05-02)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
